package json;

/**
 * ClassName: Student
 * Package: json
 * Description:
 *
 * @Author 刘英杰
 * @Create 2024/8/21 11:19
 * @Version 1.0
 */
public class Student {
    private int sno;
    private String name;
    private String gender;
    private int age;

    public Student() {
    }

    public Student(int sno, String name, String gender, int age) {
        this.sno = sno;
        this.name = name;
        this.gender = gender;
        this.age = age;
    }

    public int getSno() {
        return sno;
    }

    public void setSno(int sno) {
        this.sno = sno;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sno=" + sno +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", age=" + age +
                '}';
    }
}
